home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: supert22@aol.com (SUPER T 22)
- Newsgroups: comp.lang.c++
- Subject: I need HELP with a C++ program. PLEASE HELP!
- Date: 13 Apr 1996 00:57:04 -0400
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4knc70$4q4@newsbf02.news.aol.com>
- Reply-To: supert22@aol.com (SUPER T 22)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Please help.
-
- I need a help with a program that calculates interest. It uses the
- formula ---->
- PAYMENT=((r * (1 + r) ^ n) / ((1 + r) ^ n - 1)) * I {where 1 is the
- amount borrowed, r is the monthly interest rate, and n is the number of
- payments.
-
- Here is what the format should look like ENTER YOUR NAME: John Doe
- Enter the amount
- you wish to Borrow
- Enter the Yearly
- Interest Rate in Percent
- Enter the Time
- in Years:
-
- Your Montly
- Payment will be:
- Total Interest
- Paid Will Be:
-
- Payment # Principal Payment Interest Payment Remaining
- balance
- 1 128.50 85.33
- 7871.50
- 2 129.87 83.96
- 7741.62
- .
- .
- .
- 48 211.52 2.31
- 0
-
- I have half of it working, but I cant get the formula part right. If you
- would like to see what I have or get one working, E-mail me at
- SuperT22@aol.com
-